-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools/Unix.mk: Add debug_info target to print nxdiag output #15304
tools/Unix.mk: Add debug_info target to print nxdiag output #15304
Conversation
[Experimental Bot, please feedback here] Fill In The Commit Message: This PR contains a Commit with an Empty Commit Message. Please fill in the Commit Message with the PR Summary. Yes, this PR appears to mostly meet the NuttX requirements, but some sections need more detail. Here's a breakdown of what's good and what needs improvement: Good:
Needs Improvement:
Example of Improved Testing Section:
make debug_info
make debug_info
|
a81d14c
to
578e1de
Compare
Thanks @xiaoxiang781216, updated. |
578e1de
to
8c72208
Compare
8c72208
to
410c232
Compare
410c232
to
f2a2395
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @eren-terzioglu :-)
This seems really nice and desired set of features! But it seems too quickly getting out of hand proposing too many changes at once.. lets slow down a bit please and get better feedback from the community so the best possible version lands into master :-)
The Christmas and New Year break is over so we should get more hands on deck now :-)
HAPPY NEW YEAR FOLKS :-)
I would suggest renaming |
@eren-terzioglu this is really amazing and welcome job, big thank you for the contributions!! Let's invite the community to the discussion :-) Especially may come handy in the Independent Distributed NuttX Build and Runtime Test Farm created by @lupyuen as an extra source of information for the Dashboard? And similar projects? How can we include it into a standard build and runtime process? :-) But maybe not everyone would want to share information about their build environment to the public.. so maybe partial anonymization should be possible here? Also we should remember not to include possibility to execute fetched content.. Also it seems the documentation part may need a review and update with new functionalities and examples? :-) https://nuttx.apache.org/docs/latest/applications/system/nxdiag/index.html Thank you :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eren-terzioglu please include the summary in the commit log message
If you don't count some information about chip (MAC address, CHIP id, ...) we are not doing something related on chip. |
My suggestion is to decouple the
I agree! |
Sounds nice.. if it does not complicate things at this point or can be implemented step by step when other blocks are ready? :-) I also like clear decoupling of "host" (where NuttX is built) and "target" (where NuttX is running) :-) |
sysinfo() would collide with a Linux API of that name: https://man7.org/linux/man-pages/man2/sysinfo.2.html If it is not compatible that this might lead to naming issues in the future. |
Thank you Greg! Good catch :-) Maybe something like this?
My main concern was not to use debug term for system information as we may use it for the real debug stuff (in terms of On-Chip-Debug) one day. Its common nowadays to misuse "debug" for "logging" etc. I know the system information will be used to debug a problem, but debug has precise specific meaning (i.e. control CPU registers and program execution, control memory, access bus peripherals, etc). Also "system information" is a bit misleading because it does not clearly state if it is about host or target information :-P |
f2a2395
to
c6db817
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect! Thank you @eren-terzioglu !! :-)
c6db817
to
55a13bc
Compare
Nxdiag examples scripts modified to print system information without building and flashing nxdiag application to get report about system without reflash or reconfigure.
Summary
Related to apache/nuttx-apps#2911 and apache/nuttx-apps#2925
Add debug_info target support to parse and print
sysinfo.h
file which is output file of nxdiag application without flashing it to the device or even enablingSYSTEM_NXDIAG
option. We can use this feature to have more information about user system environment when we are investigating issue. Users only need to run make debug_info on their problematic code.Impact
Common layer change
Testing
esp32c6-devkitc:nsh
config selected and then runmake debug_info
command